<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>boolean</title>
</head>
<body>
    <button onclick="booleanType()">点我一下</button>
</body>
    <script>
        var a = true
        var b = false
        var c = new Boolean(true)
        var d = 3 > 5
        var e = 5 > 3

        function booleanType(){
            console.log("a=" + a + ",类型是" + typeof(a))
            console.log("b=" + b + ",类型是" + typeof(b))
            console.log("c=" + c + ",类型是" + typeof(c))
            console.log("d=" + d + ",类型是" + typeof(d))
            console.log("e=" + e + ",类型是" + typeof(e))
        }
    </script>
</html>